package javaEEBasic.day01;

import java.time.LocalDate;

public class Test01 {
    public static void main(String[] args) {
//        test03();
//        test04();
//        test05();
        test06();
        System.out.println(4&1);

    }
    public static void test01() {
        System.out.println("张三");
        System.out.println("男");
        System.out.println(18);
        System.out.println(1.78);
        System.out.println(false);
    }
    public static void test03() {
        /*        System.out.println(100);
        System.out.println(520.1314);
        System.out.println('X');
        System.out.println("博学谷真棒!");*/
        int age = 24;
//        System.out.println(age);
        String str1 = "_";
        String str2 = "123";
        String str3 = "$";
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);

    }

    public static void test04() {
        String name = "张三";
        int age = 22;
        double length = 1.85;
        int chineseScore = 88;
        int mathScore = 92;
        int englishScore = 85;
        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age);
        System.out.println("身高：" + length);
        System.out.println("语文成绩：" + chineseScore);
        System.out.println("数学成绩：" + mathScore);
        System.out.println("英语成绩：" + englishScore);
    }
    public static void test05() {
        String albumTitle = "范特西";
        LocalDate releaseDate = LocalDate.of(2001, 9, 14);
        int songNum = 10;
        String singer = "周杰伦";
        System.out.println("专辑名称：" + albumTitle);
        System.out.println("发行日期：" + releaseDate);
        System.out.println("歌曲数量：" + songNum);
        System.out.println("演唱：" + singer);
    }

    //二进制，八进制，16进制的写法
    public static void test06() {
        int a =0B01100001; //二进制以0B开头
        System.out.println(a);
        int b =0141; //八进制以0开头
        System.out.println(b);
        int c =0x61; //16进制以0x开头或者，0X开头
        System.out.println(c);
    }
}
